function eggClick(obj) {
	var _this = obj;

	if(_this.hasClass("curr")) {
		alert("蛋都碎了，别砸了！刷新再来.");
		return false;
	}
	//_this.unbind('click');
	$(".hammer").css({"top":_this.position().top-55,"left":_this.position().left+185});
	$(".hammer").animate({
		"top":_this.position().top-25,
		"left":_this.position().left+125
		},30,function(){
			_this.addClass("curr"); //蛋碎效果
			_this.find("sup").show(); //金花四溅
			$(".hammer").hide();
		}
	);
     
	var num = Math.random()*60;
	num = Math.ceil(num);
	
	var content;
	switch(num) {
		case 6 :
			content = "2yuan.html";
			break;
		case 28 :
			content = "5yuan.html";
			break;
		case 49 :
			content = "10yuan.html";
			break;
		default :
			content = "none.html";
			break;
	}

	setTimeout(function() {
		var dialog = Dialog({pos:'self'});
		dialog.load({
			'width':400,
			'height':200,
			'title':' ',
	        'content':content,
	        'callback':function(v){
	            //alert(v)
	        }
	    });
	}, 300);
}


$(".eggList li").click(function() {
	$(this).children("span").hide();
	eggClick($(this));
});

$(".eggList li").hover(function() {
	var posL = $(this).position().left + $(this).width();
	$("#hammer").show().css('left', posL);
})